function logp = gmmcommittee_logpdf(Xall, gmmcommittee, class)
    num_classifiers = size(Xall, 1);
    num_points = size(Xall{1}, 1);
    logp = zeros(num_points, 1);
    
    for i = 1 : num_classifiers
        logp = logp + gmm_logpdf(Xall{i}, gmmcommittee.classifier{i}.model{class});
        logp = logp + log(gmmcommittee.classifier{i}.prior(class));
    end
end

